import Vue from 'vue';
import ElementUI from 'element-ui';
import router from 'vue-router';
import 'element-ui/lib/theme-chalk/index.css';
import Index from './index.vue';
import GoodsInfo from './goods-info.vue';
import ChangeAddress from './change-address.vue';
import orderList from './order-list.vue';
import LeiList from './let-list.vue';
import OrderSubmit from './order-submit.vue';
import myCarList from './my-car-list.vue';
import 'element-ui/lib/theme-chalk/display.css';
import '../static/theme/index.css';
import '../static/css/style.css'
Vue.use(ElementUI);
Vue.use(router);
let Router = new router({
	routes: [{
		path: '/home',
		component: Index
	}, {
		path: '/goodsInfo',
		component: GoodsInfo
	}, {
		path: '/changeAddress',
		component: ChangeAddress
	}, {
		path: '/orderList',
		component: orderList
	}, {
		path: '/myCarList',
		component: myCarList
	}, {
		path: '/leiList',
		component: LeiList
	}, {
		path: '/orderSubmit',
		component: OrderSubmit
	}]
});
Vue.config.productionTip = false;
new Vue({
	router: Router,
	el: '#app',
	beforeCreate() {
		this.$router.push({
			path: '/home'
		});
	}
	// components: {
	// 	index,
	// },
	// template: '<index/>'
})